package com.xbongbong.pro.contract.pojo;

import com.xbongbong.saas.domain.entity.ext.ContractEntityExt;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/5/8 20:09
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class CashProfitSavePojo implements Serializable {

    /**
     * 用于更新时的金额查询
     */
    private Long contractId;
    private String corpid;
    /**
     * 新值
     */
    private Double cashProfit;
    private Double cashProfitRate;
    private Double contractCost;
    /**
     * 旧值
     */
    private Double oldContractCost;
    /**
     * 回款添加值
     */
    private Double finishAmount;
    /**
     * 操作入口
     */
    private Boolean isAddPayment;


    public void init(ContractEntityExt contractEntity) {
        this.contractId = contractEntity.getId();
        this.corpid = contractEntity.getCorpid();
    }
}
